package com.library.dcy.dao;


import com.library.dcy.entity.Library;

import java.util.List;
import java.util.Map;

public interface libraryDao {
    /**
     * 查询总记录条数
     *
     * @return
     */
    int totalCount() throws Exception;

    /**
     * 查询条数
     *
     * @return
     */
    List<Library> list(Map map) throws Exception;

    /**
     * 注销
     *
     * @return
     */
    int cancel(Integer reaId);

    /**
     * 修改
//     * @param reaId
//     * @param idCard
//     * @param pwd
//     * @param name
//     * @param age
//     * @param phone
//     * @param price
     * @return
     */
    int replace(Library library) throws Exception;


    int chongzhi(Library library);
    //List<Library> cz(String NAME,Integer start,Integer pageSize);
}

